remove bogus newlines in the middle of function calls, fix broken
authorMichael Natterer <mitch@imendio.com>
Thu, 6 Nov 2008 23:52:30 +0000 (23:52 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Thu, 6 Nov 2008 23:52:30 +0000 (23:52 +0000)
2008-11-07  Michael Natterer  <mitch@imendio.com>

* gtk/gtkscrollbar.c: remove bogus newlines in the middle of
function calls, fix broken indentation and remove trailing
whitespace.

svn path=/trunk/; revision=21769

ChangeLog
gtk/gtkscrollbar.c

index 5e131656591d1e6ac617c6e68bda53d2cebdf035..783a9201119f028ac4f4ea6f2c5c15ac83c286e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-07  Michael Natterer  <mitch@imendio.com>
+
+       * gtk/gtkscrollbar.c: remove bogus newlines in the middle of
+       function calls, fix broken indentation and remove trailing
+       whitespace.
+
 2008-11-06  Tristan Van Berkom <tvb@gnome.org>
 
        * gtk/gtkmenuitem.c: Made buildable and added support for adding
index 56ebe6cb2281fc22e5d82291c909e29d8414c61c..cd81b8ba10815b5c48d6bb33feb164384611b03c 100644 (file)
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
 #include "config.h"
+
 #include "gtkscrollbar.h"
 #include "gtkintl.h"
 #include "gtkprivate.h"
 #include "gtkalias.h"
 
-static void gtk_scrollbar_style_set  (GtkWidget         *widget,
-                                      GtkStyle          *previous);
+static void gtk_scrollbar_style_set (GtkWidget *widget,
+                                     GtkStyle  *previous);
 
 G_DEFINE_ABSTRACT_TYPE (GtkScrollbar, gtk_scrollbar, GTK_TYPE_RANGE)
 
 static void
 gtk_scrollbar_class_init (GtkScrollbarClass *class)
 {
-  GtkWidgetClass *widget_class;
-
-  widget_class = GTK_WIDGET_CLASS (class);
+  GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
 
   widget_class->style_set = gtk_scrollbar_style_set;
-  
+
   gtk_widget_class_install_style_property (widget_class,
                                           g_param_spec_int ("min-slider-length",
                                                             P_("Minimum Slider Length"),
@@ -59,40 +58,35 @@ gtk_scrollbar_class_init (GtkScrollbarClass *class)
                                                                  P_("Fixed slider size"),
                                                                  P_("Don't change slider size, just lock it to the minimum length"),
                                                                  FALSE,
-                                                                 
                                                                  GTK_PARAM_READABLE));
-  
+
   gtk_widget_class_install_style_property (widget_class,
                                           g_param_spec_boolean ("has-backward-stepper",
                                                                  P_("Backward stepper"),
                                                                  P_("Display the standard backward arrow button"),
                                                                  TRUE,
-                                                                 
                                                                  GTK_PARAM_READABLE));
 
-    gtk_widget_class_install_style_property (widget_class,
-                                             g_param_spec_boolean ("has-forward-stepper",
-                                                                   P_("Forward stepper"),
-                                                                   P_("Display the standard forward arrow button"),
-                                                                   TRUE,
-                                                                   
-                                                                   GTK_PARAM_READABLE));
+  gtk_widget_class_install_style_property (widget_class,
+                                           g_param_spec_boolean ("has-forward-stepper",
+                                                                 P_("Forward stepper"),
+                                                                 P_("Display the standard forward arrow button"),
+                                                                 TRUE,
+                                                                 GTK_PARAM_READABLE));
 
   gtk_widget_class_install_style_property (widget_class,
                                           g_param_spec_boolean ("has-secondary-backward-stepper",
                                                                  P_("Secondary backward stepper"),
                                                                  P_("Display a second backward arrow button on the opposite end of the scrollbar"),
                                                                  FALSE,
-                                                                 
                                                                  GTK_PARAM_READABLE));
 
-    gtk_widget_class_install_style_property (widget_class,
-                                             g_param_spec_boolean ("has-secondary-forward-stepper",
-                                                                   P_("Secondary forward stepper"),
-                                                                   P_("Display a second forward arrow button on the opposite end of the scrollbar"),
-                                                                   FALSE,
-                                                                   
-                                                                   GTK_PARAM_READABLE));
+  gtk_widget_class_install_style_property (widget_class,
+                                           g_param_spec_boolean ("has-secondary-forward-stepper",
+                                                                 P_("Secondary forward stepper"),
+                                                                 P_("Display a second forward arrow button on the opposite end of the scrollbar"),
+                                                                 FALSE,
+                                                                 GTK_PARAM_READABLE));
 }
 
 static void
@@ -101,16 +95,14 @@ gtk_scrollbar_init (GtkScrollbar *scrollbar)
 }
 
 static void
-gtk_scrollbar_style_set  (GtkWidget *widget,
-                          GtkStyle  *previous)
+gtk_scrollbar_style_set (GtkWidget *widget,
+                         GtkStyle  *previous)
 {
+  GtkRange *range = GTK_RANGE (widget);
   gint slider_length;
   gboolean fixed_size;
   gboolean has_a, has_b, has_c, has_d;
-  GtkRange *range;
 
-  range = GTK_RANGE (widget);
-  
   gtk_widget_style_get (widget,
                         "min-slider-length", &slider_length,
                         "fixed-slider-length", &fixed_size,
@@ -119,7 +111,7 @@ gtk_scrollbar_style_set  (GtkWidget *widget,
                         "has-secondary-backward-stepper", &has_c,
                         "has-forward-stepper", &has_d,
                         NULL);
-  
+
   range->min_slider_size = slider_length;
   range->slider_size_fixed = fixed_size;